
extrn   code(int0_inter)
extrn   code(project_init)
extrn   code(gps_rmc_parse)
extrn   code(key_check)
extrn   code(send_sms)
extrn   code(waiting_commands)







key_vail        bit     20h.0
rev_stop        bit     20h.4         ;1


tmp             equ     48h


        org     0000h
        sjmp    main
        org     0003h
        lcall   int0_inter
        reti
        

main:
       
       lcall    project_init

       
      
       
xxx:
        jnb     rev_stop,$
        clr     rev_stop
        clr     ex0
        
        lcall   key_check
        lcall   gps_rmc_parse
        
        lcall   key_check

        jnb     key_vail,xxx1
        clr     key_vail
        lcall   send_sms
     
        
       
       
xxx1:       
        setb    ex0

        sjmp    xxx


DEL1S:MOV R7,#10
D1:   MOV R6,#200
D2:   MOV R5,#250
      DJNZ R5,$
      DJNZ R6,D2
      DJNZ R7,D1
      RET




end
